package com.vnp.vchat.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ObjKhachhang implements Parcelable {
	String name;
	String loginName;

	String urlAvatar;
	String address;
	String dsDaxem;
	String lastMessage;
	String timeLastMessage;
	String ownerLastMsg;
	int isRead;
	int online;
	String id;
	String txtWebsite;
	int isUserVg;

	String urlDangxem;
	
	String hash;
	
	String phone;
	String email;
	
	
	
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	public int getIsRead() {
		return isRead;
	}

	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}

	public String getOwnerLastMsg() {
		return ownerLastMsg;
	}

	public void setOwnerLastMsg(String ownerLastMsg) {
		this.ownerLastMsg = ownerLastMsg;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		if (loginName == null)
			loginName = "";
		this.loginName = loginName;
	}

	public String getUrlDangxem() {
		return urlDangxem;
	}

	public void setUrlDangxem(String urlDangxem) {
		this.urlDangxem = urlDangxem;
	}

	public int getIsUserVg() {
		return isUserVg;
	}

	public void setIsUserVg(int isUserVg) {
		this.isUserVg = isUserVg;
	}

	public String getTxtWebsite() {
		return txtWebsite;
	}

	public void setTxtWebsite(String txtWebsite) {
		this.txtWebsite = txtWebsite;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getOnline() {
		return online;
	}

	public void setOnline(int online) {
		this.online = online;
	}

	public String getLastMessage() {
		return lastMessage;
	}

	public void setLastMessage(String lastMessage) {
		this.lastMessage = lastMessage;
	}

	public String getTimeLastMessage() {
		return timeLastMessage;
	}

	public void setTimeLastMessage(String timeLastMessage) {
		this.timeLastMessage = timeLastMessage;
	}

	public ObjKhachhang(String avatar, String name, String address,
			String listDs) {
		super();
		this.urlAvatar = avatar;
		this.name = name;
		this.address = address;
		this.dsDaxem = listDs;
	}

	public ObjKhachhang() {
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDsDaxem() {
		return dsDaxem;
	}

	public void setDsDaxem(String dsDaxem) {
		this.dsDaxem = dsDaxem;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (name == null)
			name = "";
		this.name = name;
	}

	public String getUrlAvatar() {
		return urlAvatar;
	}

	public void setUrlAvatar(String urlAvatar) {
		this.urlAvatar = urlAvatar;
	}

	public ObjKhachhang(Parcel in) {
		name = in.readString();
		loginName = in.readString();
		urlAvatar = in.readString();
		address = in.readString();
		dsDaxem = in.readString();
		lastMessage = in.readString();
		timeLastMessage = in.readString();
		ownerLastMsg = in.readString();
		isRead = in.readInt();
		online = in.readInt();
		id = in.readString();
		txtWebsite = in.readString();
		isUserVg = in.readInt();
		urlDangxem = in.readString();
		hash = in.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeString(loginName);
		dest.writeString(urlAvatar);
		dest.writeString(address);
		dest.writeString(dsDaxem);
		dest.writeString(lastMessage);
		dest.writeString(timeLastMessage);
		dest.writeString(ownerLastMsg);
		dest.writeInt(isRead);
		dest.writeInt(online);
		dest.writeString(id);
		dest.writeString(txtWebsite);
		dest.writeInt(isUserVg);
		dest.writeString(urlDangxem);
		dest.writeString(hash);
	}

	public static final Parcelable.Creator<ObjKhachhang> CREATOR = new Parcelable.Creator<ObjKhachhang>() {
		public ObjKhachhang createFromParcel(Parcel in) {
			return new ObjKhachhang(in);
		}

		public ObjKhachhang[] newArray(int size) {
			return new ObjKhachhang[size];
		}
	};

}
